using NHibernate.Cfg;
using NHibernate.Tool.hbm2ddl;
using Blazing.WebFacade;
using NUnit.Framework;
using TestClass = NUnit.Framework.TestFixtureAttribute;
using TestMethod = NUnit.Framework.TestAttribute;
using TestInitialize = NUnit.Framework.SetUpAttribute;
using TestCleanup = NUnit.Framework.TearDownAttribute;

namespace Blazing.Database.Tests
{
    [TestClass]
    public class SchemaTests
    {
        [TestMethod]
        public void CreateSchema()
        {
            Configuration cfg = new Configuration();
            cfg.Configure();
            cfg.BuildSessionFactory();

            SchemaExport ex = new SchemaExport(cfg);
            ex.SetOutputFile(@".\DbSchema.sql");
            ex.Execute(true, true, false);

            DefaultData.Install();
        }
    }
}
